package com.ruoyi.common.core.plus.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author hanyulin
 * @apiNote 是否枚举类
 * @date 2022/3/18 15:43
 */
public enum SysYesNoEnum {

    /**
     * 是
     */
    YES("Y","是"),

    /**
     * 否
     */
    NO("N","否");


    @Getter
    @JsonValue
    @EnumValue
    private String code;

    @Getter
    private String info;

    SysYesNoEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }
}
